<!DOCTYPE html>
<html lang="zh-cn">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <title>宏玄餐厅后台管理-后台管理</title>
    <link rel="stylesheet" href="__PUBLIC__/css/pintuer.css">
    <link rel="stylesheet" href="__PUBLIC__/css/admin.css">
    <script src="__PUBLIC__/js/jquery.js"></script>
    <script src="__PUBLIC__/js/pintuer.js"></script>
    <script src="__PUBLIC__/js/respond.js"></script>
    <script src="__PUBLIC__/js/admin.js"></script>
    </script>
    <link type="image/x-icon" href="/favicon.ico" rel="shortcut icon" />
    <link href="/favicon.ico" rel="bookmark icon" />
</head>

<body>
    <div class="lefter">
        <div class="logo">
            <a href="{:U('Admin/Index/index')}"><img src="__PUBLIC__/images/logo.png" alt="后台管理系统" width="96px;" /></a>
        </div>
    </div>
    <div class="righter nav-navicon" id="admin-nav">
        <div class="mainer">
            <div class="admin-navbar">
                <span class="float-right">
                    <a class="button button-little bg-main" href="{:U('Index/Index/index')}" target="_blank">前台首页</a>
                    <a class="button button-little bg-yellow" href="{:U('Admin/Index/logout')}">注销登录</a>
                </span>
                <ul class="nav nav-inline admin-nav">
                    <li><a href="{:U('Admin/Index/index')}" class="icon-home"> 首页</a>
                        <ul>
                            <li class="active"><a href="{:U('Admin/Index/index')}">首页</a></li>
                            <!--<li><a href="system.html">系统设置</a></li>-->
                            <li><a href="{:U('Admin/Food/index')}">菜品管理</a></li>
                            <li><a href="{:U('Admin/Order/index')}">订单管理</a></li>
                            <li><a href="{:U('Admin/User/index')}">会员管理</a></li>
                            <li><a href="#">优惠策略</a></li>
                            <li><a href="#">报表管理</a></li>
                        </ul>
                    </li>
                    <!--<li><a href="system.html" class="icon-cog"> 系统</a>
                        <ul>
                            <li><a href="#">全局设置</a></li>
                            <li class="active"><a href="#">系统设置</a></li>
                            <li><a href="#">会员设置</a></li>
                            <li><a href="#">积分设置</a></li>
                        </ul>
                    </li>-->
                    <li><a href="{:U('Admin/Food/index')}" class="icon-th"> 菜品管理</a>
                        <ul>
                            <li><a href="{:U('Admin/Food/index')}">所有菜品</a></li>
                            <li class="active"><a href="{:U('Admin/Food/addFood')}">添加菜品</a></li>
                        </ul>
                    </li>
                    <li class="active"><a href="{:U('Admin/Order/index')}" class="icon-shopping-cart"> 订单管理</a>
                        <ul>
                            <li><a href="{:U('Admin/Order/index')}">所有订单</a></li>
                            <li><a href="{:U('Admin/Order/untreatedList')}">未处理订单</a></li>
                            <li><a href="{:U('Admin/Order/unpaidList')}">未结算订单</a></li>
                            <li><a href="{:U('Admin/Order/successfulList')}">已完成订单</a></li>
                            <li><a href="{:U('Admin/Order/abolishedList')}">已取消订单</a></li>
                        </ul>
                    </li>
                    <li><a href="{:U('Admin/User/index')}" class="icon-user"> 会员管理</a>
                        <ul>
                            <li class="active"><a href="{:U('Admin/User/index')}">所有会员</a></li>
                        </ul>
                    </li>
                    <li><a href="#" class="icon-gift"> 优惠策略</a></li>
                    <li><a href="#" class="icon-list-alt"> 报表管理</a></li>
                </ul>
            </div>
            <div class="admin-bread">
                <span>您好，{$_SESSION['username']}，欢迎您的光临。</span>
                <ul class="bread">
                    <li><a href="{:U('Admin/Index/index')}" class="icon-home"> 首页</a></li>
                    <li><a href="{:U('Admin/Order/index')}" class="icon-shopping-cart"> 订单管理</a></li>
                    <li>订单详情</li>
                </ul>
            </div>
        </div>
    </div>

<div class="admin">
    <div class="row border-bottom navbar-static-top">
        <nav class="navbar" role="navigation" style="margin-bottom: 0">
            <div class="navbar-header">
                <span class="orderdetail">订单详情</span>
            </div>
            <div class="text-right">
                <button class="btn btn-primary"onclick="javascript:history.back(1);">返回</button>
            </div>

        </nav>
    </div>
    <div class="panel admin-panel">

        <div id="wrapper">
            <div id="page-wrapper" class="gray-bg dashbard-1">

                <div class="row">
                    <div class="col-lg-12">
                        <div class="wrapper wrapper-content animated fadeInRight">
                            <div class="ibox-content p-xl">
                                <div class="row">
                                    <div class="col-sm-6">
                                        <address>
                                            <strong>宏玄餐饮B2C有限公司</strong><br>
                                            广东省佛山市江湾一路18号，佛山大学本部校区西三105<br>
                                            <abbr title="Phone">总机：</abbr> (+86) 18316960780
                                        </address>
                                    </div>

                                    <div class="col-sm-6 text-right">
                                        <h4>订单编号：</h4>
                                        <h4 class="text-navy">{$order[0]['id']}</h4>
                                        <address>
                                            <strong>{$order[0]['username']}</strong><br>
                                            {$order[0]['address']}<br>
                                            <abbr title="Phone">送餐电话：</abbr> {$order[0]['phone']}
                                        </address>
                                        <p>
                                            <span><strong>创建日期：</strong> {$order[0]['booktime']|date="Y-m:d H:i:s",###}</span>
                                        </p>
                                    </div>
                                </div>

                                <div class="table-responsive m-t">
                                    <table class="table invoice-table">
                                        <thead>
                                            <tr>
                                                <th>清单</th>
                                                <th>订单状态</th>
                                                <th>单价</th>
                                                <th>数量</th>
                                                <th>折扣</th>
                                                <th>小计</th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                            <foreach name='foods' item='v'>
                                                <tr>
                                                    <td>
                                                        <div><strong>{$v.foodname}</strong><if condition="$v['extra']">({$v.extra})</if></div>
                                                    </td>
                                                    <td><if condition="$order[0]['pay']" >已付款<else />未付款</if></td>
                                                    <td>&yen;{$v.price}</td>
                                                    <td>{$v.count}</td>
                                                    <td>&yen;{$v.discount}</td>
                                                    <td>&yen;{$v.total}</td>
                                                </tr>
                                            </foreach>
                                        </tbody>
                                    </table>
                                </div>
                                <!-- /table-responsive -->

                                <table class="table invoice-total">
                                    <tbody>
                                        <tr>
                                            <td><strong>总计</strong>
                                            </td>
                                            <td><b style="color:red;">&yen;{$sum}</b></td>
                                        </tr>
                                    </tbody>
                                </table>
                                <!-- <div class="text-right">
                                    <button class="btn btn-primary"><i class="fa fa-dollar"></i> 去付款</button>
                                </div>

                               <div class="well m-t"><strong>注意：</strong>
                                    请在30日内完成付款，否则订单会自动取消。
                                </div>-->
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

    </div>
</div>

    <!-- Mainly scripts -->

</body>

</html>